package cn.xy.dao;

import cn.xy.pojo.Teacher;

import java.util.List;
import java.util.Map;

public interface TeacherMapper {
    //根据id查询teacher
    Teacher getTeacherById(int tid);

    //使用limit实现分页(sql层面)
    List<Teacher> getTeacherListByList(Map<String,Integer> map);

    //使用实现分页RowBounds(java层面)
    List<Teacher> getTeacherListByRowBounds();
}
